

<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/6
 * Time: 10:11
 */
if(empty($_POST['userName'])){
    echo '用户名为空';
    die;
}
if(empty($_POST['pwd'])){
    echo '密码为空';
    die;
}

$userName = $_POST['userName'];
$password = $_POST['pwd'];


print_r($_POST);

if($userName=='admin' && $password=='888888'){
    echo '
        <h1>用户中心</h1>
        <a href="upload.php">更改头像</a>
    ';
}else{
    echo '用户名或密码错误';
}


